package dongshi.daddy.command.v2.command;

import dongshi.daddy.command.v2.receiver.XiaoAiTongXueReceiver;

// 讲笑话命令，内部调用小爱同学的讲笑话
public class JokeCommand implements Command {
    private XiaoAiTongXueReceiver xiaoAiTongXue;

    public JokeCommand(XiaoAiTongXueReceiver xiaoAiTongXue) {
        this.xiaoAiTongXue = xiaoAiTongXue;
    }
    
    @Override
    public void exec() {
        this.xiaoAiTongXue.joke();
    }
}
